import QtQuick 2.0
import QtQuick.Controls 1.2

Rectangle {
    id: groupBoxs;
    width: 100; height: 62; color: "#eeeeee";
    property string title: "";
    Rectangle {
        anchors.fill: parent; anchors.margins: 3; color: "#cccccc";
        Rectangle {
            anchors.fill: parent; anchors.margins: 1; color: "#f1f1f1";
            Rectangle {
                anchors.fill: parent; anchors.margins: 1; color: "#eeeeee";
                Rectangle{
                    anchors{ top: parent.top; topMargin: -2; }
                    anchors{ left: parent.left; leftMargin: 15; }
                    width: titlelabel.width+40; height: 4;
                    color: groupBoxs.color;
                    visible: title != "";
                    Label {
                        id: titlelabel;
                        anchors.centerIn: parent;
                        text: title; color: "#000000";
                        font{ family: localFont.name; pointSize: 10;}
                    }
                }
            }
        }
    }
}
